package org.gameg.Api.Service;

import com.baomidou.mybatisplus.plugins.Page;
import org.gameg.bean.Player;
import org.gameg.model.biz.*;

import java.util.List;
import java.util.Map;

public interface ApiService {
    Object authorization(TPlayer player, Token token);

    Map<String,Object> saveGame(TGame tGame);

    Map<String,Object> saveIntegral(TPlayer player, TGameUser gamePlayer);

    Map<String,Object> createGameUser(TGameUser gameUser,String token);

    Page<Token> getTokenPage(Page<Token> page, Token token);

    Object addOrUpDateToken(Token token);

    Map<String,Object> insert(SysUser user);

    Page<TGamePlayer> getGamePlayStatistics(Page<TGamePlayer> page, TPlayer tPlayer);

    Map<String,Object> getGamePlayerDetail(Long playerId, Page<TGamePlayer> pageGame, Page<TOrder> pageOrder);

    Map<String,Object> getOrderDetail(Long playerId, Page<TOrder> pageOrder);

    Map<String, Object> getDrawStatistics(Long playerId,String token);

    Object addOrUpdateJackpot(TJackpot tJackpot, String token);

    Object getJackpot(TJackpot tJackpot, String token);

    Object addOrUpdateCondition(TCondition tCondition, String token);

    Object getCondition(TCondition condition, String token);

    Object addOrUpdateRebate(TRebate rebate, String token);

    Object getRebate(TRebate rebate, String token);

    void rebate();

    void giveAword();

    void aword(Player player);
}
